package com.example.baiduai.ai.controller;

import com.example.baiduai.ai.dto.AicVDto;
import com.example.baiduai.utils.GsonUtils;
import com.example.baiduai.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ai/cv")
@Slf4j
public class AiICVController {


    /**
     *  测试 回推
     * @return
     */
    @PostMapping("/aiImagesClassify")
    public JsonResult aiImagesClassify(@RequestBody AicVDto aicVDto){
        log.info(GsonUtils.toJson(aicVDto));
        return JsonResult.success(aicVDto);
    }

}
